package cn.tedu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("chapter")
public class Chapter implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String chapter;
    private String content;
    private boolean status;
    private Date created_time;
    private Date updated_time;
    @TableField(exist = false)
    private Integer novelId;
}
